package eu.szemraj.events {
    import flash.events.Event;

    public class DataChangeEvent extends Event {

		public static const DATA_CHANGE:String = "dataChange";

        public var oldValue:*;
        public var newValue:*;

        public function DataChangeEvent(type:String = DATA_CHANGE, oldValue:* = null, newValue:* = null, bubbles:Boolean = false, cancelable:Boolean = false) {
        	
            newValue = newValue;
            oldValue = oldValue;
            super( type, bubbles, cancelable );
            
        }

        override public function clone():Event {
        	
            return new DataChangeEvent( type, oldValue, newValue, bubbles, cancelable );
        }
    }
}
